package main

import (
	"atm/controllers"
	"log"
	"net/http"
)

func main() {
	log.Println("start....")
	http.HandleFunc("/query", controllers.Query)
	http.HandleFunc("/withdraw", controllers.Withdraw)
	http.HandleFunc("/deposit", controllers.Deposit)
	if err := http.ListenAndServe(":8090", nil); err !=nil {
		log.Panic(err)
	}
}
